package com.rzjm.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "user")
public class User implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String userNo;

    private Integer isDataSync;

    private String platform;

    private String nickName;

    private String realName;

    private String phonenum;

    private String faceUrl;

    private String province;

    private String city;

    private String sessionKey;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastActiveTime;

    private String lastLoginIp;

    private String openId;

    private String unionId;

    private Integer userType;

    private Long sysUserId;

    private Integer shopId;

    private Integer isAdmin;

    private Integer isTest;

    @TableField(exist = false)
    private String shopName;
}
